PCA Index Dashboard Examples

PCA Index Dashboard Examples#

This script was last run at 2024-03-24 10:11:08.261779+00:00 (UTC)
In US/Central Time, this is 2024-03-24 05:11:08.261779-05:00
## Visualize Principal Component 1
pc1, loadings = pca_index.pca(dfn, module="scikitlearn")
pc1.plot();
../../_images/ff621c724643c18150e604ada6980697de32ffb23a4349501774b8ae84272c37.png
# Simple version
fig = px.line(pc1)
fig.show()
vix = df.loc[:,['VIX']]
vix.plot()
<Axes: xlabel='DATE'>
../../_images/8c46135aa3679471e08f8e2f41d96d2b2af4ff625e633cabb1d03141379f6229.png
fig = px.line(vix)
fig.show()
../../_images/df3ced9b76a80e985576eb63e86f69e5331c874f0583a8e0af15341d0fdfb5e0.png